
package game.movie
{
	import laya.display.Animation;
	
	/**
	 * 游戏角色动画基类
	 *@date 2017-2-20 下午5:28:47
	 *@author zhouhonghui
	 */
	public class BaseMovie extends Animation
	{
		public function BaseMovie()
		{
			super();
			autoPlay = true;
		}
		/**
		 * 设置动画资源 
		 * @param urlFix
		 * @param count
		 * @param fmt
		 * 
		 */		
		public function setSourceRes(urlFix:String,count:int,fmt:String='.png'):void
		{
			var frames:String = "";
			for (var i:int = 0; i < count; i++) 
			{
				frames+=urlFix+(i+1)+fmt;
				if(i<count-1)
				{
					frames+=",";
				}
			}
			//trace("frames=",frames);
			source = frames;
		}
		
		public function isOut():Boolean
		{
			return false;
		}
		
		
	}
}